# -*- coding: utf-8 -*-

class EntityHandler:
    
    entities = {}
    
    @staticmethod    
    def register(entity):
        EntityHandler.entities[entity.name] = entity
        
    @staticmethod
    def get(name):
        return EntityHandler.entities[name]()